﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using KeMei.Common;

public partial class Controls_Header : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string txtName = Request["txtName"];
            if (txtName != null)
            {
                if (!string.IsNullOrEmpty(txtName.Trim()))
                {
                    txtSerach.Value = Server.UrlDecode(txtName);
                }
            }
        }
    }

    /// <summary>
    /// 搜索
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void serachBtn_Click(object sender, EventArgs e)
    {
        Response.Redirect(ConfigHelper.SystemUrl + "ProductCenter/ProductCenterList.aspx?type=1&txtName=" + Server.UrlEncode(txtSerach.Value.Trim()));
    }
}